package org.prs.persistence.connector;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class MySQLDatabaseConnector {
    private static Connection conn;
    static {
        try{
            Class.forName("com.mysql.jdbc.Driver");
            conn=DriverManager.getConnection("jdbc:mysql://localhost:3306/prs", "root", "root");
        }catch(ClassNotFoundException e){
            e.printStackTrace(System.out);
        }catch(SQLException e){
            e.printStackTrace(System.out);
        }
    }
    public  static Connection getConnection(){
        return conn;
    }

}
